use config::{Config, Environment, File};
use once_cell::sync::Lazy;


pub static CONF: Lazy<Config> = Lazy::new(init_config);

fn init_config() -> Config {
    Config::builder()
        .add_source(File::with_name("config"))
        .add_source(Environment::with_prefix("APP_"))
        .build()
        .unwrap_or_default()
}